home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8210 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  957 b 

  1. Path: news.doit.wisc.edu!news
  2. From: jdscott@students.wisc.edu (Jim Scott)
  3. Newsgroups: comp.lang.c
  4. Subject: Using multiple modules
  5. Date: 2 Mar 1996 14:19:57 GMT
  6. Organization: UW -- Madison
  7. Message-ID: <4h9led$b4g@news.doit.wisc.edu>
  8. NNTP-Posting-Host: f181-212.net.wisc.edu
  9. X-Newsreader: WinVN 0.99.7
  10.  
  11. I'm trying to break up growing source code into multiple modules.  As 
  12. per the FAQ, I've moved all my external definitions to a header file 
  13. included in both the modules I'm working with.
  14.  
  15. I can compile the source code into separate object files, but am unable 
  16. to link.  I get one of two errors:
  17.  
  18. "symbol defined more than once"  this is in reference to the only 
  19. function in the second object file.  I've checked, and it is only 
  20. defined in the header file.
  21.  
  22. "unresolved externals"  and a reference to a ??main?? file.  No clue 
  23. what's happening here.
  24.  
  25. In the meantime, I'm simply working with the single source file.  Any 
  26. help is greatly appreciated!
  27.  
  28.